<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>客户支付记录管理</title>
    <link rel="stylesheet" type="text/css" href="/static/jquery-easyui-1.7.0/themes/metro-blue/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/jquery-easyui-1.7.0/themes/icon.css">
    <script type="text/javascript" src="/static/jquery-easyui-1.7.0/jquery.min.js"></script>
    <script type="text/javascript" src="/static/jquery-easyui-1.7.0/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/jquery-easyui-1.7.0/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        var url;

        function searchComment() {
            $("#dg").datagrid('load',{
                "customerId": $("#s_customerId").val(),
                "bSaleDate": $("#s_bSaleDate").val(),
                "eSaleDate": $("#s_eSaleDate").val()
            });
        }

        function formatCustomer(val, row) {
            return val.contact;
        }

        function formatSaleList(val,row) {
            return val.saleNumber;
        }
    </script>
</head>
<body style="margin: 1px">
<table id="dg" title="文章类型管理" class="easyui-datagrid"  striped="true"
       fitColumns="true" pagination="true" rownumbers="true"
       url="/admin/comment/list" fit="true" toolbar="#tb">
    <thead>
    <th field="cb" checkbox="true" align="center"></th>
    <th field="id" width="20" align="center" hidden="true">编号</th>
    <th field="saleList" width="15" align="center" formatter="formatSaleList">销售单号</th>
    <th field="createDate" width="20" align="center">评价时间</th>
    <th field="customer" width="10" align="center" formatter="formatCustomer">评价人</th>
    <th field="content" width="90" align="center">内容</th>
    </thead>
</table>

<div id="tb">
    <div>
        客户名称：<input class="easyui-combobox" id="s_customerId" name="customer.id" style="width: 100px"
                    data-options="panelHeight:'auto',valueField:'id',textField:'contact',url:'/admin/customer/comboList'"/>
        &nbsp;日期:
        <input id="s_bSaleDate" class="easyui-datetimebox" editable=false style="width:180px"/>
        &nbsp;-&nbsp;
        <input id="s_eSaleDate" class="easyui-datetimebox" editable=false style="width:180px"/>
        <a href="javascript:searchComment()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
    </div>
</div>


<div id="dlg" class="easyui-dialog" style="width: 450px;height: 235px;padding: 10px 20px"
     closed="true" buttons="#dlg-buttons" data-options="onClose:function(){resetValue()}">
    <form id="fm" method="post">
        <table cellspacing="8px">
            <tr>
                <td valign="top">名称:</td>
                <td>
                    <input id="name" name="name" class="easyui-validatebox" required="true" style="width: 100px">
                </td>
            </tr>
            <tr>
                <td valign="top">备注:</td>
                <td>
                    <textarea rows="5" cols="40" id="remarks" name="remarks"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>

<div id="dlg-buttons">
    <a href="javascript:saveArticleType()" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:closeArticleTypeDialog()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>